<?php
namespace Framework\DiServices;

use Phalcon\Queue\Beanstalk;

class Queue extends Beanstalk
{
    /**
     * @param $tube
     * @param $data
     * @param null $options
     *  array(
            'priority' => 250,
            'delay'    => 10,
            'ttr'      => 3600
            )
     */
    public function putToTube($tube, $data, $options = null)
    {
        $this->choose($tube);
        $this->put($data, $options);
    }
}
